/**
 * Title:		T02RoundedRectangle.java
 * Description: Test program for rightcurve
 * 
 * @version		1.0 May 2009
 * @author		Hidemitsu Izawa (hi2136@columbia.edu)
 */
import kfrog.Frog;
import kfrog.Pond;

public class T02RoundedRectangle {
	public static void main(String args[]){
		/** pond */
		Pond pond = new Pond(400,400);///"pondsize" command in KFrog
		pond.setPondColor("WHITE");//"pondcolor" command in KFrog
		
		/** frog1 */
		Frog frog1 = new Frog(pond,1);//"new frog" command in KFrog
		frog1.frogcolor("BLUE");//"frogcolor" command in KFrog
		frog1.speed(3);//"speed" command in KFrog. 1:slow <-> 5:fast
		frog1.startdraw();//"startdraw" command in KFrog
		for(int i=0;i<4;i++){ //"repeat" command in KFrog
			frog1.forward(50);//"forward" command in KFrog
			frog1.rightcurve(50,90);//"rightcurve" command in KFrog
		}
		Thread FROG1 = new Thread(frog1); // end of "new frog" command in KFrog
		FROG1.start(); // end of "new frog" command in KFrog
	}
}

